'use strict'
let session = require('koa-session');

const config = {
    key: 'sessionKey',
    maxAge: 88888888,
    autoCommit: true,
    overwrite: true,
    httpOnly: true,
    signed: false,
    rolling: false,
    renew: false,
    secure: false,
    sameSite: null
}

function newSession(app) {
    return session(config, app);
}

module.exports = newSession;